<?php


class Admin_Model_Facade_Seo
{

	public function createSeo($seo)
	{
		$seoModel= new Admin_Model_Seo();
		try{
			$data =  $seoModel->createSeo($seo);

			return $data;
		}
		catch(Exception $e)
		{
			$error=array($e->getFile(), 'Exception: '.$e->getMessage());
			$ExceptionHandler= new Default_Model_ExceptionHandler();
			$ExceptionHandler->saveErrors($error);
		}

	}

	public function updateSeo($seo)
	{
		$seoModel= new Admin_Model_Seo();
		try{
			$data =  $seoModel->updateSeo($seo);
			return $data;
		}
		catch(Exception $e)
		{
			$error=array($e->getFile(), 'Exception: '.$e->getMessage());
			$ExceptionHandler= new Default_Model_ExceptionHandler();
			$ExceptionHandler->saveErrors($error);
		}

	}

	 


	public function readSeo($seo)
	{

		$TBD_Seo = new Admin_Model_Seo();

		try{
			$data = $TBD_Seo->ReadSeo($seo);
			return $data;
		}
		catch(Exception $e)
		{
			$error=array($e->getFile(), 'Exception: '.$e->getMessage());
			$ExceptionHandler= new Default_Model_ExceptionHandler();
			$ExceptionHandler->saveErrors($error);
		}

	}

	public function readAllSeo()
	{
		$TBD_Seo = new Admin_Model_Seo();

		try{
			$data = $TBD_Seo->ReadAllSeo();
			return $data;
		}
		catch(Exception $e)
		{
			$error=array($e->getFile(), 'Exception: '.$e->getMessage());
			$ExceptionHandler= new Default_Model_ExceptionHandler();
			$ExceptionHandler->saveErrors($error);
		}

	}



	public function deleteSeo($seo)
	{
		$TBD_Seo = new Admin_Model_Seo();

		try{
			$data = $TBD_Seo->deleteseo($seo);
			return true;
		}
		catch(Exception $e)
		{
			$error=array($e->getFile(), 'Exception: '.$e->getMessage());
			$ExceptionHandler= new Default_Model_ExceptionHandler();
			$ExceptionHandler->saveErrors($error);
		}

	}


}
